package com.lc.headline.service.impl;

import com.lc.headline.dao.BaseDao;
import com.lc.headline.dao.NewsTypeDao;
import com.lc.headline.dao.impl.NewsTypeDaoImpl;
import com.lc.headline.pojo.NewsType;
import com.lc.headline.service.NewsTypeService;

import java.util.List;

/**
 * @author liuchun
 */
public class NewsTypeServiceImpl  implements NewsTypeService {

    private NewsTypeDao newsTypeDao = new NewsTypeDaoImpl();

    //查询微头条所有的新闻类型
    @Override
    public List<NewsType> findAll() {
        return newsTypeDao.findAllTypes();
    }

}
